package com.wocai.jrt.admin.user.service.impl;

import javax.inject.Inject;
import javax.inject.Named;

import com.vteba.service.generic.impl.MyBatisServiceImpl;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;
import com.wocai.jrt.admin.user.dao.AuthResourceDao;
import com.wocai.jrt.admin.user.model.AuthResource;
import com.wocai.jrt.admin.user.model.AuthResourceBean;
import com.wocai.jrt.admin.user.service.spi.AuthResourceService;

/**
 * 权限资源关联表相关的service业务实现。
 * @author yinlei
 * @date 2015-7-6 11:40:41
 */
@Named
public class AuthResourceServiceImpl extends MyBatisServiceImpl<AuthResource, AuthResourceBean, String> implements AuthResourceService {
	// 添加了方法后，记得改为private
	protected AuthResourceDao authResourceDao;
	
	@Override
	@Inject
	public void setBaseDao(BaseDao<AuthResource, AuthResourceBean, String> authResourceDao) {
		this.baseDao = authResourceDao;
		this.authResourceDao = (AuthResourceDao) authResourceDao;
	}
}
